package com.jinbm.accountservice.entity.po;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import io.swagger.v3.oas.annotations.media.Schema;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

/**
 * 部门管理 实体类。
 *
 * @author jinbm
 * @data 2024/4/8
 * @time 9:47
 * @since JDK1.8
 * @version 0.0.1-SNAPSHOT
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "部门管理")
@Table(value = "sys_dept")
public class DeptPo {

    @Schema(description = "")
    @Id(keyType = KeyType.Auto)
    private Long deptId;

    /**
     * 上级部门ID，一级部门为0
     */
    @Schema(description = "上级部门ID，一级部门为0")
    @Column(value = "parent_id")
    private Long parentId;

    /**
     * 部门名称
     */
    @Schema(description = "部门名称")
    @Column(value = "name")
    private String name;

    /**
     * 排序
     */
    @Schema(description = "排序")
    @Column(value = "order_num")
    private Integer orderNum;

    /**
     * 是否删除  -1：已删除  0：正常
     */
    @Schema(description = "是否删除  -1：已删除  0：正常")
    @Column(value = "del_flag")
    private Integer delFlag;


}
